from flask import Blueprint,render_template

# from app.blog.models import Post

from .models import Post


bp = Blueprint('blog', __name__,url_prefix='/blog',template_folder='templates',static_folder='static')

# @bp.route('/index')
def index():
    # title = 'hello prospect'
    # posts = Post.query.all()
    # for post in posts:
    #     print(post.__dict__)
    return render_template('index.html',**locals())
